#
# Be sure to run `pod lib lint SPFoundationCategory.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'SPFoundationCategory'
    s.version          = '1.0.4'
    s.summary          = 'SPFoundationCategory是Foundation的分类的集合'
    s.description      = <<-DESC
    SPFoundationCategory是Foundation的分类 的集合
    DESC

    s.homepage         = 'https://gitee.com/1210233'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { '1210233' => '1210233@163.com' }
    s.source           = { :git => 'https://gitee.com/1210233/SPFoundationCategory.git', :tag => s.version.to_s, :submodules => true  }
    s.requires_arc = true

    #//仅支持ios
    s.platform = :ios
    s.ios.deployment_target = '8.0'

    s.prefix_header_contents = <<-EOS
    //#ifdef __OBJC__
    //#import "SPUIKitCategory.h"    //包含了所有头文件
    //#endif
    EOS
    
    s.source_files = 'SPFoundationCategory/SPFoundationCategory.h'
    s.public_header_files = 'SPFoundationCategory/SPFoundationCategory.h'


    
    s.subspec 'SPLog' do |ss|
        ss.source_files = 'SPFoundationCategory/SPLog/*.{h,m}'
        ss.public_header_files = 'SPFoundationCategory/SPLog/*.h'
    end

    s.subspec 'NSArray' do |ss|
        ss.dependency 'SPFoundationCategory/SPLog'
        ss.source_files = 'SPFoundationCategory/NSArray/*.{h,m}'
        ss.public_header_files = 'SPFoundationCategory/NSArray/*.h'
    end

    s.subspec 'NSData' do |ss|
        ss.source_files = 'SPFoundationCategory/NSData/*.{h,m}'
        ss.public_header_files = 'SPFoundationCategory/NSData/*.h'
    end
    
    s.subspec 'NSDateFormatter' do |ss|
        ss.source_files = 'SPFoundationCategory/NSDateFormatter/*.{h,m}'
        ss.public_header_files = 'SPFoundationCategory/NSDateFormatter/*.h'
    end

    s.subspec 'NSDate' do |ss|
    ss.dependency 'SPFoundationCategory/NSDateFormatter'
        ss.source_files = 'SPFoundationCategory/NSDate/*.{h,m}'
        ss.public_header_files = 'SPFoundationCategory/NSDate/*.h'
    end

    s.subspec 'NSDictionary' do |ss|
        ss.dependency 'SPFoundationCategory/SPLog'
        ss.source_files = 'SPFoundationCategory/NSDictionary/*.{h,m}'
        ss.public_header_files = 'SPFoundationCategory/NSDictionary/*.h'
    end

    s.subspec 'NSLayoutConstraint' do |ss|
        ss.source_files = 'SPFoundationCategory/NSLayoutConstraint/*.{h,m}'
        ss.public_header_files = 'SPFoundationCategory/NSLayoutConstraint/*.h'
    end

    s.subspec 'NSObject' do |ss|
        ss.source_files = 'SPFoundationCategory/NSObject/*.{h,m}'
        ss.public_header_files = 'SPFoundationCategory/NSObject/*.h'
    end

    s.subspec 'NSString' do |ss|
        ss.source_files = 'SPFoundationCategory/NSString/*.{h,m}'
        ss.public_header_files = 'SPFoundationCategory/NSString/*.h'
    end

    
end
